//
//  MHCHDressViewController.m
//  Go!
//
//  Created by rimi on 16/7/18.
//  Copyright © 2016年 凌风. All rights reserved.
//

#import "MHCHDressViewController.h"

@interface MHCHDressViewController ()
@property (nonatomic, strong) UIImageView *imageview ;
@property (nonatomic, strong) UIButton *backbtn;
@property (nonatomic, strong) UITextField *textfield1;
@property (nonatomic, strong) UITextField *textfield2;
@property (nonatomic, strong) UIButton *sureBtn;
@property (nonatomic, strong) UIButton *calertBtn;
@end

@implementation MHCHDressViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.imageview];
    [self.view addSubview:self.backbtn];
    [self.view addSubview:self.textfield1];
    [self.view addSubview:self.sureBtn];
    [self.view addSubview:self.calertBtn];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (UIImageView *)imageview{
    if (!_imageview) {
        _imageview = [[UIImageView alloc]initWithFrame:CGRectMake(Size_W(0), Size_H(0),Size_W(414), Size_H(736)-49)];
        _imageview.image = [UIImage imageNamed:@"收货地址背景图.jpg"];
    }
    return _imageview;
}

-(UIButton *)backbtn{
    if (!_backbtn) {
        _backbtn = [[UIButton alloc]initWithFrame:CGRectMake(20, 30,Size_W(50), Size_H(35))];
        [_backbtn setImage:[UIImage imageNamed:@"我的返回"] forState:UIControlStateNormal];
        [_backbtn addTarget:self action:@selector(clickback) forControlEvents:UIControlEventTouchUpInside];
    }
    return _backbtn;
}

-(UITextField *)textfield1{
    if (!_textfield1) {
        _textfield1 = [[UITextField alloc]initWithFrame:CGRectMake(Size_W(50), Size_H(200),Size_W(314), Size_H(44))];
        _textfield1.layer.borderWidth = 2;
        _textfield1.layer.borderColor = [UIColor blackColor].CGColor;
    }
    return _textfield1;
}

- (UIButton *)sureBtn{
    if (!_sureBtn) {
        _sureBtn = [[UIButton alloc]initWithFrame:CGRectMake(Size_W(60), Size_H(250),Size_W(80), Size_H(44))];
        _sureBtn.backgroundColor = [UIColor orangeColor];
        [_sureBtn setTitle:@"确定" forState:UIControlStateNormal];
        
    }
    return _sureBtn;
}

- (UIButton *)calertBtn{
    if (!_calertBtn) {
        _calertBtn = [[UIButton alloc]initWithFrame:CGRectMake(Size_W(260), Size_H(250),Size_W(80), Size_H(44))];
        [_calertBtn setTitle:@"取消" forState:UIControlStateNormal];
        _calertBtn.backgroundColor = [UIColor orangeColor];
    }
    return _calertBtn;
}




#pragma mark - 点击事件
-(void) clickback{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
